var vm = new Vue({
    el: "#app",
    data: {
        user: "",
        pwd: ""
    },
    methods: {
        get() {
            console.log("用户名:" + this.user, "密码:" + this.pwd)
            this.user = "";
            this.pwd = "";
            alert("登录成功")
        }
    }
})